import React, { useState } from 'react'
import './index.css'
export default function Index() {

    const [loading, setLoading] = useState(false)
    global.showLoading = () => {
        setLoading(true)
    }
    global.dismissLoading = () => {
        setLoading(false)
    }
    if (loading) {
        return (

            <div className='_loading'>

            </div>
        )
    } else {
        return null
    }

}
